package com.qq.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.concurrent.TimeUnit;

/**
 * @ClassName PaymentController
 * @Description TODO
 * Author yangqinglin
 * @Date 2020/7/19 11:24
 * @Version
 **/

@RestController
@Slf4j
public class PaymentController {



    @Resource
    private DiscoveryClient discoveryClient;

    @Value("${server.port}")
    private String serverport;



    @RequestMapping("/payment/test")
    public String create(){


              return serverport;

    }
}
